﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

public partial class MasterPages_Principal : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        LiteralFecha.Text = DateTime.Now.ToLongDateString();
        if (!(HttpContext.Current.Request.Url.Host.ToLower().Equals("localhost") || HttpContext.Current.Request.Url.Host.ToLower().Equals("127.0.0.1")))
        {
            Response.Redirect(ConfigurationManager.AppSettings["PaginaDeInicio"]);
        }    
    }
}
